﻿using LayuiDemo.Models;
using LayuiDemo.ViewModels.PostVMs;
using System;
using System.Collections.Generic;
using WalkingTec.Mvvm.Core;

namespace LayuiDemo.ViewModels.BlogVMs
{
	public class Attach : ISubFile
	{
		public Guid FileId { get; set; }
		public FileAttachment File { get; set; }
		public int Order { get; set; }
	}
	public partial class BlogVM : BaseCRUDVM<Blog>
	{
		public List<TreeSelectListItem> items = new List<TreeSelectListItem>();
		public BlogListVM List { get; set; }
		public bool RadioTest { get; set; }
		public bool? SwitchTest { get; set; }
		public BlogVM()
		{
			SetInclude(x => x.Files);
		}
		protected override void InitVM()
		{
			base.InitVM();
			List = Wtm.CreateVM<BlogListVM>();
		}
	}
}
